package com.ruoyi.business.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 提醒对象 biz_business_reminder
 * 
 * @author ruoyi
 */
public class BusinessReminder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 提醒ID */
    private Long reminderId;

    /** 业务ID */
    private Long businessId;

    /** 手机号码 */
    @Excel(name = "手机号码", sort = 1)
    private String mobilePhone;

    /** 用户姓名 */
    @Excel(name = "用户姓名", sort = 2)
    private String userName;

    /** 业务名称 */
    @Excel(name = "业务名称", sort = 3)
    private String businessName;

    /** 业务类型 */
    @Excel(name = "业务类型", sort = 4)
    private String businessType;

    /** 业务到期时间 */
    @Excel(name = "业务到期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", sort = 5)
    private Date endTime;

    /** 提醒类型（1到期提醒 2退订提醒 3续费提醒） */
    @Excel(name = "提醒类型", readConverterExp = "1=到期提醒,2=退订提醒,3=续费提醒", sort = 6)
    private String reminderType;

    /** 提醒渠道（0企业微信 1短信 2短信和企业微信同时提醒） */
    @Excel(name = "提醒渠道", readConverterExp = "0=企业微信,1=短信,2=短信和企业微信", sort = 7)
    private String channel;

    /** 提醒内容 */
    @Excel(name = "提醒内容", sort = 8)
    private String content;

    /** 备注 */
    @Excel(name = "备注", sort = 9)
    private String remark;

    /** 来源类型（0系统自动 1手工录入 2Excel导入） */
    @Excel(name = "来源类型", readConverterExp = "0=系统自动,1=手工录入,2=Excel导入", sort = 10)
    private String sourceType;

    /** 批次号 */
    @Excel(name = "批次号", sort = 11)
    private String batchNo;

    /** 记录类型（0任务 1记录） */
    private String recordType;

    /** 状态（0待发送 1已发送 2发送失败 3已取消） */
    private String status;

    /** 计划发送时间 */
    private Date planSendTime;

    /** 实际发送时间 */
    private Date sendTime;

    /** 重试次数 */
    private Integer retryCount;

    /** 创建人ID */
    private Long creatorId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setReminderId(Long reminderId) 
    {
        this.reminderId = reminderId;
    }

    public Long getReminderId() 
    {
        return reminderId;
    }
    
    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }
    
    @NotBlank(message = "手机号码不能为空")
    @Size(min = 0, max = 20, message = "手机号码长度不能超过20个字符")
    public String getMobilePhone() 
    {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) 
    {
        this.mobilePhone = mobilePhone;
    }
    
    @Size(min = 0, max = 50, message = "用户姓名长度不能超过50个字符")
    public String getUserName() 
    {
        return userName;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }
    
    @Size(min = 0, max = 50, message = "业务名称长度不能超过50个字符")
    public String getBusinessName() 
    {
        return businessName;
    }

    public void setBusinessName(String businessName) 
    {
        this.businessName = businessName;
    }
    
    @Size(min = 0, max = 20, message = "业务类型长度不能超过20个字符")
    public String getBusinessType() 
    {
        return businessType;
    }

    public void setBusinessType(String businessType) 
    {
        this.businessType = businessType;
    }
    
    public Date getEndTime() 
    {
        return endTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }
    
    public String getReminderType() 
    {
        return reminderType;
    }

    public void setReminderType(String reminderType) 
    {
        this.reminderType = reminderType;
    }
    
    public String getChannel() 
    {
        return channel;
    }

    public void setChannel(String channel) 
    {
        this.channel = channel;
    }
    
    public String getRecordType() 
    {
        return recordType;
    }

    public void setRecordType(String recordType) 
    {
        this.recordType = recordType;
    }
    
    public String getSourceType() 
    {
        return sourceType;
    }

    public void setSourceType(String sourceType) 
    {
        this.sourceType = sourceType;
    }
    
    public String getStatus() 
    {
        return status;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }
    
    public Date getPlanSendTime() 
    {
        return planSendTime;
    }

    public void setPlanSendTime(Date planSendTime) 
    {
        this.planSendTime = planSendTime;
    }
    
    public Date getSendTime() 
    {
        return sendTime;
    }

    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }
    
    public String getContent() 
    {
        return content;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }
    
    public Integer getRetryCount() 
    {
        return retryCount;
    }

    public void setRetryCount(Integer retryCount) 
    {
        this.retryCount = retryCount;
    }
    
    public String getBatchNo() 
    {
        return batchNo;
    }

    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }
    
    public Long getCreatorId() 
    {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) 
    {
        this.creatorId = creatorId;
    }
    
    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("reminderId", getReminderId())
            .append("businessId", getBusinessId())
            .append("mobilePhone", getMobilePhone())
            .append("userName", getUserName())
            .append("businessName", getBusinessName())
            .append("businessType", getBusinessType())
            .append("endTime", getEndTime())
            .append("reminderType", getReminderType())
            .append("channel", getChannel())
            .append("recordType", getRecordType())
            .append("sourceType", getSourceType())
            .append("status", getStatus())
            .append("planSendTime", getPlanSendTime())
            .append("sendTime", getSendTime())
            .append("content", getContent())
            .append("retryCount", getRetryCount())
            .append("batchNo", getBatchNo())
            .append("creatorId", getCreatorId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 